//Popup scripts START
var popupStatus = 0;
function loadPopup(){ 
    jQuery(".popupX").find("*").remove();  
    jQuery(".popupX").html('<div id="loader"></div>');
    if(popupStatus==0){        
        jQuery(".popupWrapper").fadeIn("slow");
        popupStatus = 1;
    }
}
function disablePopup(){
    jQuery(".popupX").find("*").remove();
     jQuery(".popupWrapper").removeAttr('style');
    if(popupStatus==1){
        ajaxPageLoad.abort();
        jQuery(".arrowInd").hide().fadeOut();
        jQuery(".popupWrapper").fadeOut("slow");
        popupStatus = 0;
    }
}

function centerPopup(param){
    var windowWidth = document.documentElement.clientWidth;
    var windowHeight = document.documentElement.clientHeight;
    var popupHeight = jQuery(".popupWrapper").height();
    var popupWidth = jQuery(".popupWrapper").width();
    var popupPosition=jQuery(param).attr('position');
    var target=jQuery(param).position();
    var arrowTop=target.top;
    var arrowLeft=target.left;
    //alert("arrowTop:"+arrowTop+" "+"arrowLeft:"+arrowLeft)
    
    //var left=windowWidth/2-popupWidth/2;    
    if(popupPosition=="leftMenu"){
        jQuery(".arrowLeftSide").show().fadeIn();
        jQuery(".arrowTopSide").hide().fadeOut();
        var left=195;    
        var top=arrowTop/2;        
        jQuery(".arrowLeftSide").css("top",arrowTop-10 + "px");
        jQuery(".arrowLeftSide").css("left","160px");
    }
    else
        var left=arrowLeft+50;    
    
    jQuery(".popupWrapper").css("top",top + "px");
    jQuery(".popupWrapper").css({
        "position": "absolute",
        "left": left
    });	
}

function showPop(param) {      
    
    var title= "";
    var controller="";
    var action="";
    var ElmID="";
    var ElmID2="";
	
    if(jQuery(param).attr("title")){
        title = param.title;
        jQuery(".popupTitleRight div").html(title);
        if(title=="CREATE A PROFILE"){
            jQuery(".popupWrapper").css({width:'1048px'});
        }
    }
    //generate url
   var URL=param.href;

    centerPopup(param);
    loadPopup();    
    
    ajaxPageLoad = jQuery.ajax({
	  url: URL,  	  
	  success: function(data){
                //alert(1);
		jQuery("#loader").fadeOut("1");		
		jQuery(".popupX").fadeIn("1");
		jQuery(".popupX").html(data);			
		}
	});
}

//Popup scripts END

// initPage
jQuery(function () {
    initGallery();
})


// initGallery
function initGallery() {
    jQuery('.gallery').carouFredSel({
        prev: '.port-gall .link-prev',
        next: '.port-gall .link-next',
        auto: false
    });

    jQuery('.carousel-testimonials').carouFredSel({
        prev: '.port-testimonial .link-prev',
        next: '.port-testimonial .link-next',
        auto: false
    });

    jQuery('.carousel-client-say').carouFredSel({
        prev: '.port-client-say .link-prev',
        next: '.port-client-say .link-next',
        auto: false
    });
}
/*	
 *	jQuery carouFredSel 4.3.3
 *	Demo's and documentation:
 *	caroufredsel.frebsite.nl
 *	
 *	Copyright (c) 2010 Fred Heusschen
 *	www.frebsite.nl
 *
 *	Dual licensed under the MIT and GPL licenses.
 *	http://en.wikipedia.org/wiki/MIT_License
 *	http://en.wikipedia.org/wiki/GNU_General_Public_License
 */


eval(function (p, a, c, k, e, r) {
    e = function (c) {
        return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
    };
    if (!''.replace(/^/, String)) {
        while (c--) r[e(c)] = k[c] || e(c);
        k = [function (e) {
            return r[e]
        }];
        e = function () {
            return '\\w+'
        };
        c = 1
    };
    while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
    return p
}('(8($){7($.1u.1v)y;$.1u.1v=8(o){7(T.W==0){N(z,\'4W 4X 4Y 1p "\'+T.4Z+\'".\');y T}7(T.W>1){y T.1D(8(){$(T).1v(o)})}u q=T,$16=T[0];q.2P=8(o,b){u c=[\'9\',\'Y\',\'I\',\'P\',\'O\',\'S\'];o=2Q(o);1p(u a=0,l=c.W;a<l;a++){o[c[a]]=2Q(o[c[a]])}7(w o.Y==\'U\'){7(o.Y<=50)o.Y={9:o.Y};C o.Y={17:o.Y}}C{7(w o.Y==\'1e\')o.Y={1f:o.Y}}7(w o.9==\'U\')o.9={A:o.9};C 7(w o.9==\'1e\')o.9={A:o.9,F:o.9,11:o.9};7(b)28=$.29(z,{},$.1u.1v.3k,o);6=$.29(z,{},$.1u.1v.3k,o);6.2a=E;6.d={};1I=(6.1I==\'3T\'||6.1I==\'13\')?\'O\':\'P\';u e=[[\'F\',\'2R\',\'1J\',\'11\',\'3U\',\'1X\',\'13\',\'2b\',\'12\',0,1,2,3],[\'11\',\'3U\',\'1X\',\'F\',\'2R\',\'1J\',\'2b\',\'13\',\'2c\',3,2,1,0]];u f=e[0].W,3V=(6.1I==\'2v\'||6.1I==\'13\')?0:1;1p(u d=0;d<f;d++){6.d[e[0][d]]=e[3V][d]}u g=D(q),3l=3m(g,6,\'1X\',E);7(6.Q==\'I\'){N(z,\'1Y 51 "Q: I" 1j 1K, 1L "18: 2w".\');6.Q=E;6.18=\'2w\'}7(6[6.d[\'11\']]==\'I\'){6[6.d[\'11\']]=3l;6.9[6.d[\'11\']]=3l}7(!6.9[6.d[\'F\']]){6.9[6.d[\'F\']]=(3n(g,6,\'1J\'))?\'1b\':g[6.d[\'1J\']](z)}7(!6.9[6.d[\'11\']]){6.9[6.d[\'11\']]=(3n(g,6,\'1X\'))?\'1b\':g[6.d[\'1X\']](z)}7(!6[6.d[\'11\']]){6[6.d[\'11\']]=6.9[6.d[\'11\']]}7(!6.9.A){7(6.9[6.d[\'F\']]==\'1b\'){6.9.A=\'1b\'}C{7(w 6[6.d[\'F\']]==\'U\'){6.9.A=1q.2S(6[6.d[\'F\']]/6.9[6.d[\'F\']])}C{u h=3o(r.2d(),6,\'2R\');6.9.A=1q.2S(h/6.9[6.d[\'F\']]);6[6.d[\'F\']]=6.9.A*6.9[6.d[\'F\']];6.18=E}}}7(!6[6.d[\'F\']]){7(6.9.A!=\'1b\'&&6.9[6.d[\'F\']]!=\'1b\'){6[6.d[\'F\']]=6.9.A*6.9[6.d[\'F\']];6.18=E}C{6[6.d[\'F\']]=\'1b\'}}7(6.9.A==\'1b\'){6.2a=z;6.3p=(6[6.d[\'F\']]==\'1b\')?3o(r.2d(),6,\'2R\'):6[6.d[\'F\']];7(6.18===E){6[6.d[\'F\']]=\'1b\'}6.9.A=2x(q,6,0)}7(w 6.Q==\'1g\'){6.Q=0}7(w 6.18==\'1g\'){6.18=(6[6.d[\'F\']]==\'1b\')?E:\'2w\'}6.9.1M=6.9.A;6.Z=E;6.Q=3W(6.Q);7(6.18==\'2b\')6.18=\'13\';7(6.18==\'52\')6.18=\'2v\';1m(6.18){H\'2w\':H\'13\':H\'2v\':7(6[6.d[\'F\']]!=\'1b\'){u p=2T(2e(g,6),6);6.Z=z;6.Q[6.d[1]]=p[1];6.Q[6.d[3]]=p[0]}X;2y:6.18=E;6.Z=(6.Q[0]==0&&6.Q[1]==0&&6.Q[2]==0&&6.Q[3]==0)?E:z;X}7(w 6.9.2U!=\'U\')6.9.2U=(6.2a)?1:6.9.A;7(w 6.Y.9!=\'U\')6.Y.9=(6.2a)?\'1b\':6.9.A;7(w 6.Y.17!=\'U\')6.Y.17=53;6.I=2z(6.I,E,z);6.P=2z(6.P);6.O=2z(6.O);6.S=2z(6.S,z);6.I=$.29(z,{},6.Y,6.I);6.P=$.29(z,{},6.Y,6.P);6.O=$.29(z,{},6.Y,6.O);6.S=$.29(z,{},6.Y,6.S);7(w 6.S.2V!=\'1h\')6.S.2V=E;7(w 6.S.3q!=\'8\')6.S.3q=$.1u.1v.3X;7(w 6.I.19!=\'1h\')6.I.19=z;7(w 6.I.2A!=\'1h\')6.I.2A=z;7(w 6.I.3r!=\'U\')6.I.3r=0;7(w 6.I.1Z!=\'U\')6.I.1Z=(6.I.17<10)?54:6.I.17*5;7(6.N){N(z,\'3Y F: \'+6.F);N(z,\'3Y 11: \'+6.11);N(z,\'3Z 55: \'+6.9.F);N(z,\'3Z 56: \'+6.9.11);N(z,\'2W 2X 9 A: \'+6.9.A);7(6.I.19)N(z,\'2W 2X 9 3s 57: \'+6.I.9);7(6.P.V)N(z,\'2W 2X 9 3s 59: \'+6.P.9);7(6.O.V)N(z,\'2W 2X 9 3s 5a: \'+6.O.9)}};q.41=8(){7(q.J(\'20\')==\'42\'||q.J(\'20\')==\'5b\'){N(6.N,\'5c 5d-5e "20" 5f 5g "5h" 5i "43".\')}r.J({20:\'43\',5j:\'44\',2B:q.J(\'2B\'),12:q.J(\'12\'),2c:q.J(\'2c\'),2C:q.J(\'2C\')});q.1c(\'45\',{F:q.J(\'F\'),11:q.J(\'11\'),2B:q.J(\'2B\'),12:q.J(\'12\'),2c:q.J(\'2c\'),2C:q.J(\'2C\'),\'3t\':q.J(\'3t\'),20:q.J(\'20\'),2b:q.J(\'2b\'),13:q.J(\'13\')}).J({2B:0,12:0,2c:0,2C:0,\'3t\':\'3u\',20:\'42\'});7(6.Z){D(q).1D(8(){u m=1N($(T).J(6.d[\'12\']));7(21(m))m=0;$(T).1c(\'1n\',m)})}};q.46=8(){q.3v();q.R(\'1w.L\',8(e){e.14();q.B(\'1E\');6.I.19=E;1O=\'47\'});q.R(\'1E.L\',8(e,g){e.14();7(w g==\'1h\'){N(z,\'5k a 48 5l 1j 1K, 1L 2D "1w" 22 1t.\');q.B(\'1w\');y}1O=z;7(2Y!=2f)5m(2Y);7(2Z!=2f)4a(2Z);7(30!=2f)4a(30);u a=6.I.1Z-2g,23=2E-1q.2h(a*2E/6.I.1Z);7(23!=0){7(6.I.4b)6.I.4b.1d($16,23,a)}});q.R(\'19.L\',8(e,d,f,g){e.14();q.B(\'1E\');u a=3w([d,f,g],[\'1e\',\'U\',\'1h\']);7(a[0]!=\'P\'&&a[0]!=\'O\')a[0]=1I;7(w a[1]!=\'U\')a[1]=0;7(a[2])6.I.19=z;7(!6.I.19)y;1O=E;u b=6.I.1Z-2g,4c=b+a[1];23=2E-1q.2h(b*2E/6.I.1Z);2Y=3x(8(){7(q.1j(\':2F\')){q.B(\'19\',a[0])}C{2g=0;q.B(a[0],6.I)}},4c);7(6.I.2i===\'5n\'){2Z=5o(8(){2g+=50},50)}7(6.I.4d&&23==0){6.I.4d.1d($16,23,b)}7(6.I.4e){30=3x(8(){6.I.4e.1d($16,23,b)},a[1])}});q.R(\'P.L O.L\',8(e,o,n,c){e.14();7(1O==\'47\'||q.1j(\':2F\')||q.1j(\':44\')){e.4f();y}7(6.9.2U>=G){N(6.N,\'2j 4g 9: 4h 3y\');e.4f();y}2g=0;u a=3w([o,n,c],[\'1r\',\'U\',\'8\']);7(w a[0]!=\'1r\')a[0]=6[e.31];7(w a[2]==\'8\')a[0].2G=a[2];7(w a[1]!=\'U\'){7(w a[0].9==\'U\')a[1]=a[0].9;C 7(w 6[e.31].9==\'U\')a[1]=6[e.31].9;C a[1]=6.9.A}7(w a[1]!=\'U\')y N(6.N,\'2j a 3z U: \'+a[1]+\'. 2j 3y\');7(a[0].3A&&!a[0].3A.1d($16))y N(6.N,\'5p "3A" 5q E.\');q.B(\'5r\'+e.31,a)});q.R(\'3B.L\',8(e,d,f){e.14();7(6.2a){2H=f;6.9.1M=6.9.A;u g=D(q);7(6.Z)1i(g,6);6.9.A=4i(q,6,2H);f=6.9.A-6.9.1M+2H;7(f<=0){6.9.A=2x(q,6,G-2H);f=2H}7(6.Z)1i(g,6,z)}7(!6.1P){u h=G-M;7(h-f<0){f=h}7(M==0){f=0}}M+=f;7(M>=G)M-=G;7(!6.1P){7(M==0&&f!=0&&d.32)d.32.1d($16);7(6.33){7(f==0){q.B(\'O\',G-6.9.A);y}}C 24(6,M)}7(f==0)y;D(q).15(G-f).5s(q);7(G<6.9.A+f){D(q).15(0,(6.9.A+f)-G).34(z).2I(q)}u g=D(q),1x=4j(g,6,f),1k=4k(g,6),25=g.1y(f-1),1z=1x.26(),1Q=1k.26();7(6.Z){1i(1z,6);1i(1k,6)}7(6.18)u p=2T(1k,6);u i=2k(g.15(0,f),6,\'F\'),1A=35(2l(1k,6,z),6,!6.Z);7(6.Z){1i(1z,6,6.Q[6.d[1]]);1i(25,6,6.Q[6.d[3]])}7(6.18){6.Q[6.d[1]]=p[1];6.Q[6.d[3]]=p[0]}u j={},3C={},2m={},2n={},K=d.17;7(d.1s==\'3u\')K=0;C 7(K==\'I\')K=6.Y.17/6.Y.9*f;C 7(K<=0)K=0;C 7(K<10)K=i/K;u k={17:K,1f:d.1f};7(d.36)d.36.1d($16,1x,1k,1A,K);7(6.Z){u l=6.Q[6.d[3]];2m[6.d[\'12\']]=25.1c(\'1n\');3C[6.d[\'12\']]=1Q.1c(\'1n\')+6.Q[6.d[1]];2n[6.d[\'12\']]=1z.1c(\'1n\');25.1w().1o(2m,k);1Q.1w().1o(3C,k);1z.1w().1o(2n,k)}C{u l=0}j[6.d[\'13\']]=l;7(6[6.d[\'F\']]==\'1b\'||6[6.d[\'11\']]==\'1b\'){r.1w().1o(1A,k)}1m(d.1s){H\'1R\':H\'1S\':H\'1B\':u m=q.34().2I(r);X}1m(d.1s){H\'1B\':D(m).15(0,f).1l();H\'1R\':H\'1S\':D(m).15(6.9.1M).1l();X}1m(d.1s){H\'2o\':1F(d,q,0,K);X;H\'1R\':m.J({3a:0});1F(d,m,1,K);1F(d,q,1,K,8(){m.1l()});X;H\'1S\':3D(d,q,m,6,K,z);X;H\'1B\':3E(d,m,6,K,z);X}1m(d.1s){H\'2o\':H\'1R\':H\'1S\':H\'1B\':3b=K;K=0;X}u n=f;q.J(6.d[\'13\'],-i);q.1o(j,{17:K,1f:d.1f,2J:8(){u a=6.9.A+n-G;7(a>0){D(q).15(G).1l();1x=D(q).15(G-(n-a)).4l().5t(D(q).15(0,a).4l())}7(6.Z){u b=D(q).1y(6.9.A+n-1);b.J(6.d[\'12\'],b.1c(\'1n\'))}u c=(d.2G)?8(){d.2G.1d($16,1x,1k,1A)}:E;1m(d.1s){H\'2o\':H\'1B\':1F(d,q,1,3b,c);X;2y:7(c)c();X}}});q.B(\'2p\',[E,1A]).B(\'19\',K)});q.R(\'3F.L\',8(e,f,g){e.14();7(6.2a){6.9.1M=6.9.A;u h=D(q);7(6.Z)1i(h,6);6.9.A=2x(q,6,g);7(6.9.1M-g>=6.9.A)6.9.A=2x(q,6,++g);7(6.Z)1i(h,6,z)}7(!6.1P){7(M==0){7(g>G-6.9.A){g=G-6.9.A}}C{7(M-g<6.9.A){g=M-6.9.A}}}M-=g;7(M<0)M+=G;7(!6.1P){7(M==6.9.A&&g!=0&&f.32)f.32.1d($16);7(6.33){7(g==0){q.B(\'P\',G-6.9.A);y}}C 24(6,M)}7(g==0)y;7(G<6.9.A+g)D(q).15(0,(6.9.A+g)-G).34(z).2I(q);u h=D(q),1x=4m(h,6),1k=4n(h,6,g),25=1x.1y(g-1),1z=1x.26(),1Q=1k.26();7(6.Z){1i(1z,6);1i(1Q,6)}7(6.18)u p=2T(1k,6);u i=2k(h.15(0,g),6,\'F\'),1A=35(2l(1k,6,z),6,!6.Z);7(6.Z){1i(1z,6,6.Q[6.d[1]]);1i(1Q,6,6.Q[6.d[1]])}7(6.18){6.Q[6.d[1]]=p[1];6.Q[6.d[3]]=p[0]}u j={},2n={},2m={},K=f.17;7(f.1s==\'3u\')K=0;C 7(K==\'I\')K=6.Y.17/6.Y.9*g;C 7(K<=0)K=0;C 7(K<10)K=i/K;u k={17:K,1f:f.1f};7(f.36)f.36.1d($16,1x,1k,1A,K);7(6.Z){2n[6.d[\'12\']]=1z.1c(\'1n\');2m[6.d[\'12\']]=25.1c(\'1n\')+6.Q[6.d[3]];1Q.J(6.d[\'12\'],1Q.1c(\'1n\')+6.Q[6.d[1]]);1z.1w().1o(2n,k);25.1w().1o(2m,k)}j[6.d[\'13\']]=-i;7(6[6.d[\'F\']]==\'1b\'||6[6.d[\'11\']]==\'1b\'){r.1w().1o(1A,k)}1m(f.1s){H\'1R\':H\'1S\':H\'1B\':u l=q.34().2I(r);X}1m(f.1s){H\'1R\':H\'1S\':D(l).15(0,g).1l();H\'1B\':D(l).15(6.9.A).1l();X}1m(f.1s){H\'2o\':1F(f,q,0,K);X;H\'1R\':l.J({3a:0});1F(f,l,1,K);1F(f,q,1,K,8(){l.1l()});X;H\'1S\':3D(f,q,l,6,K,E);X;H\'1B\':3E(f,l,6,K,E);X}1m(f.1s){H\'2o\':H\'1R\':H\'1S\':H\'1B\':3b=K;K=0;X}u m=g;q.1o(j,{17:K,1f:f.1f,2J:8(){u a=6.9.A+m-G,4o=(6.Z)?6.Q[6.d[3]]:0;q.J(6.d[\'13\'],4o);7(a>0){D(q).15(G).1l()}u b=D(q).15(0,m).2I(q).26();7(a>0){1k=2e(D(q),6)}7(6.Z){7(G<6.9.A+m){u c=D(q).1y(6.9.A-1);c.J(6.d[\'12\'],c.1c(\'1n\')+6.Q[6.d[3]])}b.J(6.d[\'12\'],b.1c(\'1n\'))}u d=(f.2G)?8(){f.2G.1d($16,1x,1k,1A)}:E;1m(f.1s){H\'2o\':H\'1B\':1F(f,q,1,3b,d);X;2y:7(d)d();X}}});q.B(\'2p\',[E,1A]).B(\'19\',K)});q.R(\'2q.L\',8(e,a,b,c,d){e.14();7(q.1j(\':2F\'))y;a=2K(a,b,c,M,G,q);7(a==0)y;7(w d!=\'1r\')d=E;7(6.1P){7(a<=G/2)q.B(\'O\',[d,a]);C q.B(\'P\',[d,G-a])}C{7(M==0||M>a)q.B(\'O\',[d,a]);C q.B(\'P\',[d,G-a])}});q.R(\'5u.L\',8(e,a,b,c,d){e.14();7(w a==\'1r\'&&w a.2L==\'1g\')a=$(a);7(w a==\'1e\')a=$(a);7(w a!=\'1r\'||w a.2L==\'1g\'||a.W==0)y N(6.N,\'2j a 3z 1r.\');7(w b==\'1g\'||b==\'4p\'){q.3G(a)}C{b=2K(b,d,c,M,G,q);u f=D(q).1y(b);7(6.Z){a.1D(8(){u m=1N($(T).J(6.d[\'12\']));7(21(m))m=0;$(T).1c(\'1n\',m)})}7(f.W){7(b<M)M+=a.W;7(M>=G)M-=G;f.5v(a)}C{q.3G(a)}}G=D(q).W;q.B(\'2M\');u g=2r(q,6);2N(6,G);24(6,M);q.B(\'2p\',[z,g])});q.R(\'5w.L\',8(e,a,b,c){e.14();7(w a==\'1g\'||a==\'4p\'){D(q).26().1l()}C{a=2K(a,c,b,M,G,q);u d=D(q).1y(a);7(d.W){7(a<M)M-=d.W;d.1l()}}G=D(q).W;u f=2r(q,6);2N(6,G);24(6,M);q.B(\'2p\',[z,f])});q.R(\'3H.L\',8(e,a){e.14();7(M==0)u b=0;C u b=G-M;7(w a==\'8\')a.1d($16,b);y b});q.R(\'4q.L\',8(e,a){e.14();u b=1q.2h(G/6.9.A-1);7(M==0)u c=0;C 7(M<G%6.9.A)u c=0;C 7(M==6.9.A&&!6.1P)u c=b;C u c=1q.5x((G-M)/6.9.A);7(c<0)c=0;7(c>b)c=b;7(w a==\'8\')a.1d($16,c);y c});q.R(\'5y.L\',8(e,a){e.14();$i=2e(D(q),6);7(w a==\'8\')a.1d($16,$i);y $i});q.R(\'1O.L\',8(e,a){e.14();7(w a==\'8\')a.1d($16,1O);y 1O});q.R(\'1G.L\',8(e,a,b,f){e.14();7(w a==\'8\'){a.1d($16,6)}C 7(w a==\'1r\'){f=(b===E)?E:\'4r\';1p(u c 4s a){7(w a[c]==\'1r\'){1p(u d 4s a[c]){q.B(\'1G\',[c+\'.\'+d,a[c][d],f])}}C q.B(\'1G\',[c,a[c],f])}7(b!==E){1i(D(q),6);q.2P(28);2r(q,6)}}C 7(w a!=\'1g\'){7(w b==\'8\'){u g=3I(\'6.\'+a);7(w g==\'1g\')g=\'\';b.1d($16,g)}C 7(w b!=\'1g\'){7(w f==\'1g\')f=z;7(q.1j(\':2F\')){3x(8(){q.B(\'1G\',[a,b,f])},2E);y N(6.N,\'48 2F, 1G 5z.\')}3I(\'28.\'+a+\' = b\');7(f===z){1i(D(q),6);q.2P(28);2r(q,6)}C 7(f!=\'4r\'){3I(\'6.\'+a+\' = b\')}}}y 6});q.R(\'2M.L\',8(e,a,b){e.14();7(w a==\'1g\'||a.W==0)a=$(\'5A\');C 7(w a==\'1e\')a=$(a);7(w a!=\'1r\')y N(6.N,\'2j a 3z 1r.\');7(w b!=\'1e\'||b.W==0)b=\'a.4t\';a.5B(b).1D(8(){u h=T.4u||\'\';7(h.W>0&&D(q).4v($(h))!=-1){$(T).1T(\'1U\').1U(8(e){e.1H();q.B(\'2q\',h)})}})});q.R(\'2p.L\',8(e,b,c){e.14();7(!6.S.1a)y;7(w b==\'1h\'&&b){D(6.S.1a).1l();1p(u a=0,l=1q.2h(G/6.9.A);a<l;a++){u i=D(q).1y(2K(a*6.9.A,0,z,M,G,q));6.S.1a.3G(6.S.3q(a+1,i))}D(6.S.1a).1T(\'1U\').1D(8(a){$(T).1U(8(e){e.1H();q.B(\'2q\',[a*6.9.A,0,z,6.S])})})}q.B(\'4q\',8(a){D(6.S.1a).2O(\'4w\').1y(a).3c(\'4w\')})});q.R(\'2s.L\',8(e,a){e.14();7(a){q.B(\'2q\',[0,0,z,{17:0}])}7(6.Z){1i(D(q),6)}q.B(\'1E\').J(q.1c(\'45\'));q.3v();q.3J();r.5C(q)});q.R(\'4x.L\',8(e,a,b){e.14();N(z,\'1Y 22 1t "4x" 1j 1K, 1L "3B".\');q.B(\'3B\',[a,b])});q.R(\'4y.L\',8(e,a,b){e.14();N(z,\'1Y 22 1t "4y" 1j 1K, 1L "3F".\');q.B(\'3F\',[a,b])})};q.3v=8(){q.1T(\'.L\')};q.4z=8(){q.3J();2N(6,G);24(6,M);7(6.I.2i){r.R(\'3d.L\',8(){q.B(\'1E\')});r.R(\'3e.L\',8(){q.B(\'19\')})}7(6.P.V){6.P.V.R(\'1U.L\',8(e){e.1H();q.B(\'P\')});7(6.P.2i){6.P.V.R(\'3d.L\',8(){q.B(\'1E\')});6.P.V.R(\'3e.L\',8(){q.B(\'19\')})}}7(6.O.V){6.O.V.R(\'1U.L\',8(e){e.1H();q.B(\'O\')});7(6.O.2i){6.O.V.R(\'3d.L\',8(){q.B(\'1E\')});6.O.V.R(\'3e.L\',8(){q.B(\'19\')})}}7($.1u.1C){7(6.P.1C){r.1C(8(e,a){7(a>0){e.1H();3f=(w 6.P.1C==\'U\')?6.P.1C:\'\';q.B(\'P\',3f)}})}7(6.O.1C){r.1C(8(e,a){7(a<0){e.1H();3f=(w 6.O.1C==\'U\')?6.O.1C:\'\';q.B(\'O\',3f)}})}}7(6.S.1a){7(6.S.2i){6.S.1a.R(\'3d.L\',8(){q.B(\'1E\')});6.S.1a.R(\'3e.L\',8(){q.B(\'19\')})}}7(6.O.1V||6.P.1V){$(3K).R(\'4A.L\',8(e){u k=e.4B;7(k==6.O.1V){e.1H();q.B(\'O\')}7(k==6.P.1V){e.1H();q.B(\'P\')}})}7(6.S.2V){$(3K).R(\'4A.L\',8(e){u k=e.4B;7(k>=49&&k<58){k=(k-49)*6.9.A;7(k<=G){e.1H();q.B(\'2q\',[k,0,z,6.S])}}})}7(6.I.19){q.B(\'19\',6.I.3r);7($.1u.2A&&6.I.2A){q.2A(\'1E\',\'19\')}}};q.3J=8(){$(3K).1T(\'.L\');r.1T(\'.L\');7(6.P.V)6.P.V.1T(\'.L\');7(6.O.V)6.O.V.1T(\'.L\');7(6.S.1a)6.S.1a.1T(\'.L\');2N(6,\'3L\');24(6,\'2O\');7(6.S.1a){D(6.S.1a).1l()}};q.1G=8(a,b){N(z,\'1Y "1G" 3g 3h 1j 1K, 1L 2D "1G" 22 1t.\');u c=E;u d=8(a){c=a};7(!a)a=d;7(!b)b=d;q.B(\'1G\',[a,b]);y c};q.4C=8(){N(z,\'1Y "4C" 3g 3h 1j 1K, 1L 2D "3H" 22 1t.\');u b=E;q.B(\'3H\',8(a){b=a});y b};q.2s=8(){N(z,\'1Y "2s" 3g 3h 1j 1K, 1L 2D "2s" 22 1t.\');q.B(\'2s\');y q};q.4D=8(a,b){N(z,\'1Y "4D" 3g 3h 1j 1K, 1L 2D "2M" 22 1t.\');q.B(\'2M\',[a,b]);y q};7(q.2d().1j(\'.4E\')){u r=q.2d();q.B(\'2s\')}u r=q.5D(\'<5E 5F="4E" />\').2d(),6={},28=o,G=D(q).W,M=0,2Y=2f,2Z=2f,30=2f,2g=0,1O=z,1I=\'O\';q.2P(28,z);q.41();q.46();q.4z();7(6.9.1W!==0&&6.9.1W!==E){u s=6.9.1W;7(s===z){s=3i.5G.4u;7(!s.W)s=0}C 7(s===\'4F\'){s=1q.2S(1q.4F()*G)}q.B(\'2q\',[s,0,z,{17:0}])}u t=2r(q,6,E),4G=2e(D(q),6);7(6.4H){6.4H.1d($16,4G,t)}q.B(\'2p\',[z,t]);q.B(\'2M\');y T};$.1u.1v.3k={N:E,33:z,1P:z,1I:\'13\',9:{1W:0},Y:{1f:\'5H\',2i:E,1C:E}};$.1u.1v.3X=8(a,b){y\'<a 5I="#"><4I>\'+a+\'</4I></a>\'};8 1F(a,c,x,d,f){u o={17:d,1f:a.1f};7(w f==\'8\')o.2J=f;c.1o({3a:x},o)}8 3D(a,b,c,o,d,e){u f=2l(D(c),o,z)[0],3j=(e)?-f:f,27={},2t={};27[o.d[\'F\']]=f;27[o.d[\'13\']]=3j;2t[o.d[\'13\']]=0;b.1o({3a:\'+=0\'},d);c.J(27).1o(2t,{17:d,1f:a.1f,2J:8(){$(T).1l()}})}8 3E(a,c,o,d,b){u e=2l(D(c),o,z)[0],3j=(b)?e:-e,27={},2t={};27[o.d[\'F\']]=e;2t[o.d[\'13\']]=3j;c.J(27).1o(2t,{17:d,1f:a.1f,2J:8(){$(T).1l()}})}8 2N(o,t){7(t==\'4J\'||t==\'3L\'){u f=t}C 7(o.9.2U>=t){N(o.N,\'2j 4g 9: 4h 3y\');u f=\'3L\'}C{u f=\'4J\'}7(o.P.V)o.P.V[f]();7(o.O.V)o.O.V[f]();7(o.S.1a)o.S.1a[f]()}8 24(o,f){7(o.1P||o.33)y;u a=(f==\'2O\'||f==\'3c\')?f:E;7(o.O.V){u b=a||(f==o.9.A)?\'3c\':\'2O\';o.O.V[b](\'4K\')}7(o.P.V){u b=a||(f==0)?\'3c\':\'2O\';o.P.V[b](\'4K\')}}8 3w(c,d){u e=[];1p(u a=0,4L=c.W;a<4L;a++){1p(u b=0,4M=d.W;b<4M;b++){7(w c[a]==d[b]&&!e[b]){e[b]=c[a];X}}}y e}8 3M(k){7(k==\'2v\')y 39;7(k==\'13\')y 37;7(k==\'3T\')y 38;7(k==\'5J\')y 40;y-1}8 2Q(a){7(w a==\'1g\')a={};y a}8 2z(a,b,c){7(w b!=\'1h\')b=E;7(w c!=\'1h\')c=E;a=2Q(a);7(w a==\'1e\'){u d=3M(a);7(d==-1)a=$(a);C a=d}7(b){7(w a==\'1h\')a={2V:a};7(w a.2L!=\'1g\')a={1a:a};7(w a.1a==\'1e\')a.1a=$(a.1a);7(w a.1t!=\'1e\')a.1t=\'1U\'}C 7(c){7(w a==\'1h\')a={19:a};7(w a==\'U\')a={1Z:a}}C{7(w a.2L!=\'1g\')a={V:a};7(w a==\'U\')a={1V:a};7(w a.V==\'1e\')a.V=$(a.V);7(w a.1V==\'1e\')a.1V=3M(a.1V);7(w a.1t!=\'1e\')a.1t=\'1U\'}y a}8 2K(a,b,c,d,e,f){7(w a==\'1e\'){7(21(a))a=$(a);C a=1N(a)}7(w a==\'1r\'){7(w a.2L==\'1g\')a=$(a);a=D(f).4v(a);7(a==-1)a=0;7(w c!=\'1h\')c=E}C{7(w c!=\'1h\')c=z}7(21(a))a=0;C a=1N(a);7(21(b))b=0;C b=1N(b);7(c){a+=d}a+=b;7(e>0){4N(a>=e){a-=e}4N(a<0){a+=e}}y a}8 D(c,f){u a=$(\'> *\',c);7(w f==\'1e\')a=a.5K(f);y a}8 2e(i,o){y i.15(0,o.9.A)}8 4j(i,o,n){y i.15(n,o.9.1M+n)}8 4k(i,o){y i.15(0,o.9.A)}8 4m(i,o){y i.15(0,o.9.1M)}8 4n(i,o,n){y i.15(n,o.9.A+n)}8 1i(i,o,m){u x=(w m==\'1h\')?m:E;7(w m!=\'U\')m=0;i.1D(8(){u t=1N($(T).J(o.d[\'12\']));7(21(t))t=0;$(T).1c(\'4O\',t);$(T).J(o.d[\'12\'],((x)?$(T).1c(\'4O\'):m+$(T).1c(\'1n\')))})}8 2l(i,o,a){4P=2k(i,o,\'F\',a);4Q=3N(i,o,\'11\',a);y[4P,4Q]}8 3N(i,o,a,b){7(w b!=\'1h\')b=E;7(w o[o.d[a]]==\'U\'&&b)y o[o.d[a]];7(w o.9[o.d[a]]==\'U\')y o.9[o.d[a]];u c=(a.3O().3P(\'F\')>-1)?\'1J\':\'1X\';y 3m(i,o,c)}8 3m(i,o,a){u s=0;i.1D(8(){u m=$(T)[o.d[a]](z);7(s<m)s=m});y s}8 3o(b,o,c){u d=b[o.d[c]](),3Q=(o.d[c].3O().3P(\'F\')>-1)?[\'5L\',\'5M\']:[\'5N\',\'5O\'];1p(a=0,l=3Q.W;a<l;a++){u m=1N(b.J(3Q[a]));7(21(m))m=0;d-=m}y d}8 2k(i,o,a,b){7(w b!=\'1h\')b=E;7(w o[o.d[a]]==\'U\'&&b)y o[o.d[a]];7(w o.9[o.d[a]]==\'U\')y o.9[o.d[a]]*i.W;u c=(a.3O().3P(\'F\')>-1)?\'1J\':\'1X\';y 4R(i,o,c)}8 4R(i,o,a){u s=0;i.1D(8(){s+=$(T)[o.d[a]](z)});y s}8 3n(i,o,a){u s=E,v=E;i.1D(8(){c=$(T)[o.d[a]](z);7(s===E)s=c;C 7(s!=c)v=z});y v}8 35(a,o,p){7(w p!=\'1h\')p=z;u b=(o.Z&&p)?o.Q:[0,0,0,0];u c={};c[o.d[\'F\']]=a[0]+b[1]+b[3];c[o.d[\'11\']]=a[1]+b[0]+b[2];y c}8 2r(a,o,p){u b=a.2d(),$i=D(a),$v=2e($i,o),3R=35(2l($v,o,z),o,p);b.J(3R);7(o.Z){u c=$v.26();c.J(o.d[\'12\'],c.1c(\'1n\')+o.Q[o.d[1]]);a.J(o.d[\'2b\'],o.Q[o.d[0]]);a.J(o.d[\'13\'],o.Q[o.d[3]])}a.J(o.d[\'F\'],2k($i,o,\'F\')*2);a.J(o.d[\'11\'],3N($i,o,\'11\'));y 3R}8 3W(p){7(w p==\'1g\')y[0,0,0,0];7(w p==\'U\')y[p,p,p,p];C 7(w p==\'1e\')p=p.4S(\'5P\').5Q(\'\').4S(\' \');7(!4T(p)){y[0,0,0,0]}1p(u i=0;i<4;i++){p[i]=1N(p[i])}1m(p.W){H 0:y[0,0,0,0];H 1:y[p[0],p[0],p[0],p[0]];H 2:y[p[0],p[1],p[0],p[1]];H 3:y[p[0],p[1],p[2],p[1]];2y:y[p[0],p[1],p[2],p[3]]}}8 2T(a,o){u x=(w o[o.d[\'F\']]==\'U\')?1q.2h(o[o.d[\'F\']]-2k(a,o,\'F\')):0;1m(o.18){H\'13\':y[0,x];X;H\'2v\':y[x,0];X;H\'2w\':2y:u b=1q.2h(x/2),4U=1q.2S(x/2);y[b,4U];X}}8 4i(b,o,c){u d=D(b),2u=0,1W=o.9.A-c-1,x=0;7(1W<0)1W=d.W-1;1p(u a=1W;a>=0;a--){2u+=d.1y(a)[o.d[\'1J\']](z);7(2u>o.3p)y x;7(a==0)a=d.W;x++}}8 2x(b,o,c){u d=D(b),2u=0,x=0;1p(u a=c,l=d.W-1;a<=l;a++){2u+=d.1y(a)[o.d[\'1J\']](z);7(2u>o.3p)y x;7(a==d.W-1)a=-1;x++}}8 4T(a){y w(a)==\'1r\'&&(a 5R 5S)}8 N(d,m){7(!d)y E;7(w m==\'1e\')m=\'1v: \'+m;7(3i.3S&&3i.3S.4V)3i.3S.4V(m);y E}$.1u.4t=8(o){y T.1v(o)}})(5T);', 62, 366, '||||||opts|if|function|items|||||||||||||||||||||var||typeof||return|true|visible|trigger|else|getItems|false|width|totalItems|case|auto|css|a_dur|cfs|firstItem|debug|next|prev|padding|bind|pagination|this|number|button|length|break|scroll|usePadding||height|marginRight|left|stopPropagation|slice|tt0|duration|align|play|container|variable|data|call|string|easing|undefined|boolean|resetMargin|is|c_new|remove|switch|cfs_origCssMargin|animate|for|Math|object|fx|event|fn|carouFredSel|stop|c_old|eq|l_old|w_siz|uncover|mousewheel|each|pause|fx_fade|configuration|preventDefault|direction|outerWidth|deprecated|use|oldVisible|parseInt|isPaused|circular|l_new|crossfade|cover|unbind|click|key|start|outerHeight|The|pauseDuration|position|isNaN|custom|perc|enableNavi|l_cur|last|css_o|opts_orig|extend|variableVisible|top|marginBottom|parent|getCurrentItems|null|pauseTimePassed|ceil|pauseOnHover|Not|getTotalSize|getSizes|a_cur|a_old|fade|updatePageStatus|slideTo|setSizes|destroy|ani_o|total|right|center|getVisibleItemsNext|default|getNaviObject|nap|marginTop|marginLeft|the|100|animated|onAfter|oI|appendTo|complete|getItemIndex|jquery|linkAnchors|showNavi|removeClass|init|getObject|innerWidth|floor|getAlignPadding|minimum|keys|Number|of|autoTimeout|autoInterval|timerInterval|type|onEnd|infinite|clone|mapWrapperSizes|onBefore||||opacity|f_dur|addClass|mouseenter|mouseleave|num|public|method|window|cur_p|defaults|lrgst_b|getTrueLargestSize|hasVariableSizes|getTrueInnerSize|maxDimention|anchorBuilder|delay|scrolled|float|none|unbind_events|sortParams|setTimeout|scrolling|valid|conditions|slide_prev|a_new|fx_cover|fx_uncover|slide_next|append|currentPosition|eval|unbind_buttons|document|hide|getKeyCode|getLargestSize|toLowerCase|indexOf|arr|sz|console|up|innerHeight|dx|getPadding|pageAnchorBuilder|Carousel|Item||build|absolute|relative|hidden|cfs_origCss|bind_events|stopped|carousel||clearInterval|onPausePause|dur2|onPauseEnd|onPauseStart|stopImmediatePropagation|enough|not|getVisibleItemsPrev|getOldItemsPrev|getNewItemsPrev|get|getOldItemsNext|getNewItemsNext|new_m|end|currentPage|ObjectConfiguration|in|caroufredsel|hash|index|selected|slidePrev|slideNext|bind_buttons|keyup|keyCode|current_position|link_anchors|caroufredsel_wrapper|random|itm|onCreate|span|show|disabled|l1|l2|while|cfs_tempCssMargin|s1|s2|getTotalSizeVariable|split|is_array|x2|log|No|element|found|selector||option|bottom|500|2500|widths|heights|automatically||backward|forward|fixed|Carousels|CSS|attribute|should|be|static|or|overflow|Pause|globally|clearTimeout|resume|setInterval|Callback|returned|slide_|prependTo|concat|insertItem|before|removeItem|round|currentVisible|timeout|body|find|replaceWith|wrap|div|class|location|swing|href|down|filter|paddingLeft|paddingRight|paddingTop|paddingBottom|px|join|instanceof|Array|jQuery'.split('|'), 0, {}))
/*
 * jQuery Nivo Slider v2.6
 * http://nivo.dev7studios.com
 *
 * Copyright 2011, Gilbert Pellegrom
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * March 2010
 */

;
(function ($) {
    var NivoSlider = function (element, options) {
        var settings = $.extend({}, $.fn.nivoSlider.defaults, options);
        var vars = {
            currentSlide: 0,
            currentImage: '',
            totalSlides: 0,
            randAnim: '',
            running: false,
            paused: false,
            stop: false
        };
        var slider = $(element);
        slider.data('nivo:vars', vars);
        slider.css('position', 'relative');
        slider.addClass('nivoSlider');
        var kids = slider.children();
        kids.each(function () {
            var child = $(this);
            var link = '';
            if (!child.is('img')) {
                if (child.is('a')) {
                    child.addClass('nivo-imageLink');
                    link = child;
                }
                child = child.find('img:first');
            }
            var childWidth = child.width();
            if (childWidth == 0) childWidth = child.attr('width');
            var childHeight = child.height();
            if (childHeight == 0) childHeight = child.attr('height');
            if (childWidth > slider.width()) {
                slider.width(childWidth);
            }
            if (childHeight > slider.height()) {
                slider.height(childHeight);
            }
            if (link != '') {
                link.css('display', 'none');
            }
            child.css('display', 'none');
            vars.totalSlides++;
        });
        if (settings.startSlide > 0) {
            if (settings.startSlide >= vars.totalSlides) settings.startSlide = vars.totalSlides - 1;
            vars.currentSlide = settings.startSlide;
        }
        if ($(kids[vars.currentSlide]).is('img')) {
            vars.currentImage = $(kids[vars.currentSlide]);
        } else {
            vars.currentImage = $(kids[vars.currentSlide]).find('img:first');
        }
        if ($(kids[vars.currentSlide]).is('a')) {
            $(kids[vars.currentSlide]).css('display', 'block');
        }
        slider.css('background', 'url("' + vars.currentImage.attr('src') + '") no-repeat');
			
        slider.append($('<div class="nivo-caption"><p></p></div>').css({
            display: 'none',
            opacity: settings.captionOpacity
        }));
        var processCaption = function (settings) {
            var nivoCaption = $('.nivo-caption', slider);
            if (vars.currentImage.attr('title') != '' && vars.currentImage.attr('title') != undefined) {
                var title = vars.currentImage.attr('title');
                if (title.substr(0, 1) == '#') title = $(title).html();
                if (nivoCaption.css('display') == 'block') {
                    nivoCaption.find('p').fadeOut(settings.animSpeed, function () {
                        $(this).html(title);
                        $(this).fadeIn(settings.animSpeed);
                    });
                } else {
                    nivoCaption.find('p').html(title);
                }
                nivoCaption.fadeIn(settings.animSpeed);
            } else {
                nivoCaption.fadeOut(settings.animSpeed);
            }
        }
        processCaption(settings);
        var timer = 0;
        if (!settings.manualAdvance && kids.length > 1) {
            timer = setInterval(function () {
                nivoRun(slider, kids, settings, false);
            }, settings.pauseTime);
        }
        if (settings.directionNav) {
            slider.append('<div class="nivo-directionNav"><a class="nivo-prevNav">' + settings.prevText + '</a><a class="nivo-nextNav">' + settings.nextText + '</a></div>');
            if (settings.directionNavHide) {
                $('.nivo-directionNav', slider).hide();
                slider.hover(function () {
                    $('.nivo-directionNav', slider).show();
                }, function () {
                    $('.nivo-directionNav', slider).hide();
                });
            }
            $('a.nivo-prevNav', slider).live('click', function () {
                if (vars.running) return false;
                clearInterval(timer);
                timer = '';
                vars.currentSlide -= 2;
                nivoRun(slider, kids, settings, 'prev');
            });
            $('a.nivo-nextNav', slider).live('click', function () {
                if (vars.running) return false;
                clearInterval(timer);
                timer = '';
                nivoRun(slider, kids, settings, 'next');
            });
        }
        if (settings.controlNav) {
            var nivoControl = $('<div class="nivo-controlNav"></div>');
            slider.append(nivoControl);
            for (var i = 0; i < kids.length; i++) {
                if (settings.controlNavThumbs) {
                    var child = kids.eq(i);
                    if (!child.is('img')) {
                        child = child.find('img:first');
                    }
                    if (settings.controlNavThumbsFromRel) {
                        nivoControl.append('<a class="nivo-control" rel="' + i + '"><img src="' + child.attr('rel') + '" alt="" /></a>');
                    } else {
                        nivoControl.append('<a class="nivo-control" rel="' + i + '"><img src="' + child.attr('src').replace(settings.controlNavThumbsSearch, settings.controlNavThumbsReplace) + '" alt="" /></a>');
                    }
                } else {
                    nivoControl.append('<a class="nivo-control" rel="' + i + '">' + (i + 1) + '</a>');
                }
            }
            $('.nivo-controlNav a:eq(' + vars.currentSlide + ')', slider).addClass('active');
            $('.nivo-controlNav a', slider).live('click', function () {
                if (vars.running) return false;
                if ($(this).hasClass('active')) return false;
                clearInterval(timer);
                timer = '';
                slider.css('background', 'url("' + vars.currentImage.attr('src') + '") no-repeat');
                vars.currentSlide = $(this).attr('rel') - 1;
                nivoRun(slider, kids, settings, 'control');
            });
        }
        if (settings.keyboardNav) {
            $(window).keypress(function (event) {
                if (event.keyCode == '37') {
                    if (vars.running) return false;
                    clearInterval(timer);
                    timer = '';
                    vars.currentSlide -= 2;
                    nivoRun(slider, kids, settings, 'prev');
                }
                if (event.keyCode == '39') {
                    if (vars.running) return false;
                    clearInterval(timer);
                    timer = '';
                    nivoRun(slider, kids, settings, 'next');
                }
            });
        }
        if (settings.pauseOnHover) {
            slider.hover(function () {
                vars.paused = true;
                clearInterval(timer);
                timer = '';
            }, function () {
                vars.paused = false;
                if (timer == '' && !settings.manualAdvance) {
                    timer = setInterval(function () {
                        nivoRun(slider, kids, settings, false);
                    }, settings.pauseTime);
                }
            });
        }
        slider.bind('nivo:animFinished', function () {
            vars.running = false;
            $(kids).each(function () {
                if ($(this).is('a')) {
                    $(this).css('display', 'none');
                }
            });
            if ($(kids[vars.currentSlide]).is('a')) {
                $(kids[vars.currentSlide]).css('display', 'block');
            }
            if (timer == '' && !vars.paused && !settings.manualAdvance) {
                timer = setInterval(function () {
                    nivoRun(slider, kids, settings, false);
                }, settings.pauseTime);
            }
            settings.afterChange.call(this);
        });
        var createSlices = function (slider, settings, vars) {
            for (var i = 0; i < settings.slices; i++) {
                var sliceWidth = Math.round(slider.width() / settings.slices);
                if (i == settings.slices - 1) {
                    slider.append($('<div class="nivo-slice"></div>').css({
                        left: (sliceWidth * i) + 'px',
                        width: (slider.width() - (sliceWidth * i)) + 'px',
                        height: '0px',
                        opacity: '0',
                        background: 'url("' + vars.currentImage.attr('src') + '") no-repeat -' + ((sliceWidth + (i * sliceWidth)) - sliceWidth) + 'px 0%'
                    }));
                } else {
                    slider.append($('<div class="nivo-slice"></div>').css({
                        left: (sliceWidth * i) + 'px',
                        width: sliceWidth + 'px',
                        height: '0px',
                        opacity: '0',
                        background: 'url("' + vars.currentImage.attr('src') + '") no-repeat -' + ((sliceWidth + (i * sliceWidth)) - sliceWidth) + 'px 0%'
                    }));
                }
            }
        }
        var createBoxes = function (slider, settings, vars) {
            var boxWidth = Math.round(slider.width() / settings.boxCols);
            var boxHeight = Math.round(slider.height() / settings.boxRows);
            for (var rows = 0; rows < settings.boxRows; rows++) {
                for (var cols = 0; cols < settings.boxCols; cols++) {
                    if (cols == settings.boxCols - 1) {
                        slider.append($('<div class="nivo-box"></div>').css({
                            opacity: 0,
                            left: (boxWidth * cols) + 'px',
                            top: (boxHeight * rows) + 'px',
                            width: (slider.width() - (boxWidth * cols)) + 'px',
                            height: boxHeight + 'px',
                            background: 'url("' + vars.currentImage.attr('src') + '") no-repeat -' + ((boxWidth + (cols * boxWidth)) - boxWidth) + 'px -' + ((boxHeight + (rows * boxHeight)) - boxHeight) + 'px'
                        }));
                    } else {
                        slider.append(jQuery('<div class="nivo-box"></div>').css({
                            opacity: 0,
                            left: (boxWidth * cols) + 'px',
                            top: (boxHeight * rows) + 'px',
                            width: boxWidth + 'px',
                            height: boxHeight + 'px',
                            background: 'url("' + vars.currentImage.attr('src') + '") no-repeat -' + ((boxWidth + (cols * boxWidth)) - boxWidth) + 'px -' + ((boxHeight + (rows * boxHeight)) - boxHeight) + 'px'
                        }));
                    }
                }
            }
        }
        var nivoRun = function (slider, kids, settings, nudge) {
            var vars = slider.data('nivo:vars');
            if (vars && (vars.currentSlide == vars.totalSlides - 1)) {
                settings.lastSlide.call(this);
            }
            if ((!vars || vars.stop) && !nudge) return false;
            settings.beforeChange.call(this);
            if (!nudge) {
                slider.css('background', 'url("' + vars.currentImage.attr('src') + '") no-repeat');
            } else {
                if (nudge == 'prev') {
                    slider.css('background', 'url("' + vars.currentImage.attr('src') + '") no-repeat');
                }
                if (nudge == 'next') {
                    slider.css('background', 'url("' + vars.currentImage.attr('src') + '") no-repeat');
                }
            }
            vars.currentSlide++;
            if (vars.currentSlide == vars.totalSlides) {
                vars.currentSlide = 0;
                settings.slideshowEnd.call(this);
            }
            if (vars.currentSlide < 0) vars.currentSlide = (vars.totalSlides - 1);
            if (jQuery(kids[vars.currentSlide]).is('img')) {
                vars.currentImage = jQuery(kids[vars.currentSlide]);
            } else {
                vars.currentImage = jQuery(kids[vars.currentSlide]).find('img:first');
            }
            if (settings.controlNav) {
                jQuery('.nivo-controlNav a', slider).removeClass('active');
                jQuery('.nivo-controlNav a:eq(' + vars.currentSlide + ')', slider).addClass('active');
            }
            processCaption(settings);
            jQuery('.nivo-slice', slider).remove();
            jQuery('.nivo-box', slider).remove();
            if (settings.effect == 'random') {
                var anims = new Array('sliceDownRight', 'sliceDownLeft', 'sliceUpRight', 'sliceUpLeft', 'sliceUpDown', 'sliceUpDownLeft', 'fold', 'fade', 'boxRandom', 'boxRain', 'boxRainReverse', 'boxRainGrow', 'boxRainGrowReverse');
                vars.randAnim = anims[Math.floor(Math.random() * (anims.length + 1))];
                if (vars.randAnim == undefined) vars.randAnim = 'fade';
            }
            if (settings.effect.indexOf(',') != -1) {
                var anims = settings.effect.split(',');
                vars.randAnim = anims[Math.floor(Math.random() * (anims.length))];
                if (vars.randAnim == undefined) vars.randAnim = 'fade';
            }
            vars.running = true;
            if (settings.effect == 'sliceDown' || settings.effect == 'sliceDownRight' || vars.randAnim == 'sliceDownRight' || settings.effect == 'sliceDownLeft' || vars.randAnim == 'sliceDownLeft') {
                createSlices(slider, settings, vars);
                var timeBuff = 0;
                var i = 0;
                var slices = jQuery('.nivo-slice', slider);
                if (settings.effect == 'sliceDownLeft' || vars.randAnim == 'sliceDownLeft') slices = jQuery('.nivo-slice', slider)._reverse();
                slices.each(function () {
                    var slice = jQuery(this);
                    slice.css({
                        'top': '0px'
                    });
                    if (i == settings.slices - 1) {
                        setTimeout(function () {
                            slice.animate({
                                height: '100%',
                                opacity: '1.0'
                            }, settings.animSpeed, '', function () {
                                slider.trigger('nivo:animFinished');
                            });
                        }, (100 + timeBuff));
                    } else {
                        setTimeout(function () {
                            slice.animate({
                                height: '100%',
                                opacity: '1.0'
                            }, settings.animSpeed);
                        }, (100 + timeBuff));
                    }
                    timeBuff += 50;
                    i++;
                });
            } else if (settings.effect == 'sliceUp' || settings.effect == 'sliceUpRight' || vars.randAnim == 'sliceUpRight' || settings.effect == 'sliceUpLeft' || vars.randAnim == 'sliceUpLeft') {
                createSlices(slider, settings, vars);
                var timeBuff = 0;
                var i = 0;
                var slices = jQuery('.nivo-slice', slider);
                if (settings.effect == 'sliceUpLeft' || vars.randAnim == 'sliceUpLeft') slices = jQuery('.nivo-slice', slider)._reverse();
                slices.each(function () {
                    var slice = jQuery(this);
                    slice.css({
                        'bottom': '0px'
                    });
                    if (i == settings.slices - 1) {
                        setTimeout(function () {
                            slice.animate({
                                height: '100%',
                                opacity: '1.0'
                            }, settings.animSpeed, '', function () {
                                slider.trigger('nivo:animFinished');
                            });
                        }, (100 + timeBuff));
                    } else {
                        setTimeout(function () {
                            slice.animate({
                                height: '100%',
                                opacity: '1.0'
                            }, settings.animSpeed);
                        }, (100 + timeBuff));
                    }
                    timeBuff += 50;
                    i++;
                });
            } else if (settings.effect == 'sliceUpDown' || settings.effect == 'sliceUpDownRight' || vars.randAnim == 'sliceUpDown' || settings.effect == 'sliceUpDownLeft' || vars.randAnim == 'sliceUpDownLeft') {
                createSlices(slider, settings, vars);
                var timeBuff = 0;
                var i = 0;
                var v = 0;
                var slices = jQuery('.nivo-slice', slider);
                if (settings.effect == 'sliceUpDownLeft' || vars.randAnim == 'sliceUpDownLeft') slices = jQuery('.nivo-slice', slider)._reverse();
                slices.each(function () {
                    var slice = jQuery(this);
                    if (i == 0) {
                        slice.css('top', '0px');
                        i++;
                    } else {
                        slice.css('bottom', '0px');
                        i = 0;
                    }
                    if (v == settings.slices - 1) {
                        setTimeout(function () {
                            slice.animate({
                                height: '100%',
                                opacity: '1.0'
                            }, settings.animSpeed, '', function () {
                                slider.trigger('nivo:animFinished');
                            });
                        }, (100 + timeBuff));
                    } else {
                        setTimeout(function () {
                            slice.animate({
                                height: '100%',
                                opacity: '1.0'
                            }, settings.animSpeed);
                        }, (100 + timeBuff));
                    }
                    timeBuff += 50;
                    v++;
                });
            } else if (settings.effect == 'fold' || vars.randAnim == 'fold') {
                createSlices(slider, settings, vars);
                var timeBuff = 0;
                var i = 0;
                jQuery('.nivo-slice', slider).each(function () {
                    var slice = jQuery(this);
                    var origWidth = slice.width();
                    slice.css({
                        top: '0px',
                        height: '100%',
                        width: '0px'
                    });
                    if (i == settings.slices - 1) {
                        setTimeout(function () {
                            slice.animate({
                                width: origWidth,
                                opacity: '1.0'
                            }, settings.animSpeed, '', function () {
                                slider.trigger('nivo:animFinished');
                            });
                        }, (100 + timeBuff));
                    } else {
                        setTimeout(function () {
                            slice.animate({
                                width: origWidth,
                                opacity: '1.0'
                            }, settings.animSpeed);
                        }, (100 + timeBuff));
                    }
                    timeBuff += 50;
                    i++;
                });
            } else if (settings.effect == 'fade' || vars.randAnim == 'fade') {
                createSlices(slider, settings, vars);
                var firstSlice = jQuery('.nivo-slice:first', slider);
                firstSlice.css({
                    'height': '100%',
                    'width': slider.width() + 'px'
                });
                firstSlice.animate({
                    opacity: '1.0'
                }, (settings.animSpeed * 2), '', function () {
                    slider.trigger('nivo:animFinished');
                });
            } else if (settings.effect == 'slideInRight' || vars.randAnim == 'slideInRight') {
                createSlices(slider, settings, vars);
                var firstSlice = jQuery('.nivo-slice:first', slider);
                firstSlice.css({
                    'height': '100%',
                    'width': '0px',
                    'opacity': '1'
                });
                firstSlice.animate({
                    width: slider.width() + 'px'
                }, (settings.animSpeed * 2), '', function () {
                    slider.trigger('nivo:animFinished');
                });
            } else if (settings.effect == 'slideInLeft' || vars.randAnim == 'slideInLeft') {
                createSlices(slider, settings, vars);
                var firstSlice = jQuery('.nivo-slice:first', slider);
                firstSlice.css({
                    'height': '100%',
                    'width': '0px',
                    'opacity': '1',
                    'left': '',
                    'right': '0px'
                });
                firstSlice.animate({
                    width: slider.width() + 'px'
                }, (settings.animSpeed * 2), '', function () {
                    firstSlice.css({
                        'left': '0px',
                        'right': ''
                    });
                    slider.trigger('nivo:animFinished');
                });
            } else if (settings.effect == 'boxRandom' || vars.randAnim == 'boxRandom') {
                createBoxes(slider, settings, vars);
                var totalBoxes = settings.boxCols * settings.boxRows;
                var i = 0;
                var timeBuff = 0;
                var boxes = shuffle(jQuery('.nivo-box', slider));
                boxes.each(function () {
                    var box = jQuery(this);
                    if (i == totalBoxes - 1) {
                        setTimeout(function () {
                            box.animate({
                                opacity: '1'
                            }, settings.animSpeed, '', function () {
                                slider.trigger('nivo:animFinished');
                            });
                        }, (100 + timeBuff));
                    } else {
                        setTimeout(function () {
                            box.animate({
                                opacity: '1'
                            }, settings.animSpeed);
                        }, (100 + timeBuff));
                    }
                    timeBuff += 20;
                    i++;
                });
            } else if (settings.effect == 'boxRain' || vars.randAnim == 'boxRain' || settings.effect == 'boxRainReverse' || vars.randAnim == 'boxRainReverse' || settings.effect == 'boxRainGrow' || vars.randAnim == 'boxRainGrow' || settings.effect == 'boxRainGrowReverse' || vars.randAnim == 'boxRainGrowReverse') {
                createBoxes(slider, settings, vars);
                var totalBoxes = settings.boxCols * settings.boxRows;
                var i = 0;
                var timeBuff = 0;
                var rowIndex = 0;
                var colIndex = 0;
                var box2Darr = new Array();
                box2Darr[rowIndex] = new Array();
                var boxes = jQuery('.nivo-box', slider);
                if (settings.effect == 'boxRainReverse' || vars.randAnim == 'boxRainReverse' || settings.effect == 'boxRainGrowReverse' || vars.randAnim == 'boxRainGrowReverse') {
                    boxes = jQuery('.nivo-box', slider)._reverse();
                }
                boxes.each(function () {
                    box2Darr[rowIndex][colIndex] = jQuery(this);
                    colIndex++;
                    if (colIndex == settings.boxCols) {
                        rowIndex++;
                        colIndex = 0;
                        box2Darr[rowIndex] = new Array();
                    }
                });
                for (var cols = 0; cols < (settings.boxCols * 2); cols++) {
                    var prevCol = cols;
                    for (var rows = 0; rows < settings.boxRows; rows++) {
                        if (prevCol >= 0 && prevCol < settings.boxCols) {
                            (function (row, col, time, i, totalBoxes) {
                                var box = jQuery(box2Darr[row][col]);
                                var w = box.width();
                                var h = box.height();
                                if (settings.effect == 'boxRainGrow' || vars.randAnim == 'boxRainGrow' || settings.effect == 'boxRainGrowReverse' || vars.randAnim == 'boxRainGrowReverse') {
                                    box.width(0).height(0);
                                }
                                if (i == totalBoxes - 1) {
                                    setTimeout(function () {
                                        box.animate({
                                            opacity: '1',
                                            width: w,
                                            height: h
                                        }, settings.animSpeed / 1.3, '', function () {
                                            slider.trigger('nivo:animFinished');
                                        });
                                    }, (100 + time));
                                } else {
                                    setTimeout(function () {
                                        box.animate({
                                            opacity: '1',
                                            width: w,
                                            height: h
                                        }, settings.animSpeed / 1.3);
                                    }, (100 + time));
                                }
                            })(rows, prevCol, timeBuff, i, totalBoxes);
                            i++;
                        }
                        prevCol--;
                    }
                    timeBuff += 100;
                }
            }
        }
        var shuffle = function (arr) {
            for (var j, x, i = arr.length; i; j = parseInt(Math.random() * i), x = arr[--i], arr[i] = arr[j], arr[j] = x);
            return arr;
        }
        var trace = function (msg) {
            if (this.console && typeof console.log != "undefined") console.log(msg);
        }
        this.stop = function () {
            if (!jQuery(element).data('nivo:vars').stop) {
                jQuery(element).data('nivo:vars').stop = true;
                trace('Stop Slider');
            }
        }
        this.start = function () {
            if (jQuery(element).data('nivo:vars').stop) {
                jQuery(element).data('nivo:vars').stop = false;
                trace('Start Slider');
            }
        }
        settings.afterLoad.call(this);
        return this;
    };
    $.fn.nivoSlider = function (options) {
        return this.each(function (key, value) {
            var element = $(this);
            if (element.data('nivoslider')) return element.data('nivoslider');
            var nivoslider = new NivoSlider(this, options);
            element.data('nivoslider', nivoslider);
        });
    };
    $.fn.nivoSlider.defaults = {
        effect: 'random',
        slices: 15,
        boxCols: 8,
        boxRows: 4,
        animSpeed: 500,
        pauseTime: 3000,
        startSlide: 0,
        directionNav: true,
        directionNavHide: true,
        controlNav: true,
        controlNavThumbs: false,
        controlNavThumbsFromRel: false,
        controlNavThumbsSearch: '.jpg',
        controlNavThumbsReplace: '_thumb.jpg',
        keyboardNav: true,
        pauseOnHover: true,
        manualAdvance: false,
        captionOpacity: 0.8,
        prevText: 'Prev',
        nextText: 'Next',
        beforeChange: function () {},
        afterChange: function () {},
        slideshowEnd: function () {},
        lastSlide: function () {},
        afterLoad: function () {}
    };
    $.fn._reverse = [].reverse;
})(jQuery);

// html5shiv @rem remysharp.com/html5-enabling-script
// iepp v1.6.2 @jon_neal iecss.com/print-protector
// Dual licensed under the MIT or GPL Version 2 licenses
/*@cc_on(function(a,b){function r(a){var b=-1;while(++b<f)a.createElement(e[b])}if(!(!window.attachEvent||!b.createStyleSheet||!function(){var a=document.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}())){a.iepp=a.iepp||{};var c=a.iepp,d=c.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",e=d.split("|"),f=e.length,g=new RegExp("(^|\\s)("+d+")","gi"),h=new RegExp("<(/*)("+d+")","gi"),i=/^\s*[\{\}]\s*$/,j=new RegExp("(^|[^\\n]*?\\s)("+d+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),k=b.createDocumentFragment(),l=b.documentElement,m=l.firstChild,n=b.createElement("body"),o=b.createElement("style"),p=/print|all/,q;c.getCSS=function(a,b){if(a+""===undefined)return"";var d=-1,e=a.length,f,g=[];while(++d<e){f=a[d];if(f.disabled)continue;b=f.media||b,p.test(b)&&g.push(c.getCSS(f.imports,b),f.cssText),b="all"}return g.join("")},c.parseCSS=function(a){var b=[],c;while((c=j.exec(a))!=null)b.push(((i.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(g,"$1.iepp_$2")+c[4]);return b.join("\n")},c.writeHTML=function(){var a=-1;q=q||b.body;while(++a<f){var c=b.getElementsByTagName(e[a]),d=c.length,g=-1;while(++g<d)c[g].className.indexOf("iepp_")<0&&(c[g].className+=" iepp_"+e[a])}k.appendChild(q),l.appendChild(n),n.className=q.className,n.id=q.id,n.innerHTML=q.innerHTML.replace(h,"<$1font")},c._beforePrint=function(){o.styleSheet.cssText=c.parseCSS(c.getCSS(b.styleSheets,"all")),c.writeHTML()},c.restoreHTML=function(){n.innerHTML="",l.removeChild(n),l.appendChild(q)},c._afterPrint=function(){c.restoreHTML(),o.styleSheet.cssText=""},r(b),r(k);if(c.disablePP)return;m.insertBefore(o,m.firstChild),o.media="print",o.className="iepp-printshim",a.attachEvent("onbeforeprint",c._beforePrint),a.attachEvent("onafterprint",c._afterPrint)}})(this,document);@*/